<!--
    (c) 2007, Stephane Alnet

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 3
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<TMPL_LOOP name="callroutes">
    <fieldset>
        <legend>Call Route <TMPL_VAR NAME="callroute_name"></legend>
        <p>
            <label for="<TMPL_VAR NAME="callroute">_pattern">Pattern</label>
            <input type="text" name="<TMPL_VAR NAME="callroute">_pattern" id="<TMPL_VAR NAME="callroute">_pattern"
                />
        </p>
        <p>
            <label for="<TMPL_VAR NAME="callroute">_skip">Skip first ... digits</label>
            <input type="text" name="<TMPL_VAR NAME="callroute">_skip" id="<TMPL_VAR NAME="callroute">_skip"
                />
        </p>
        <p>
            <label for="<TMPL_VAR NAME="callroute">_keep">Keep last ... digits</label>
            <input type="text" name="<TMPL_VAR NAME="callroute">_keep" id="<TMPL_VAR NAME="callroute">_keep"
                />
        </p>
        <p>
            <label for="<TMPL_VAR NAME="callroute">_prepend">Prepend</label>
            <input type="text" name="<TMPL_VAR NAME="callroute">_prepend" id="<TMPL_VAR NAME="callroute">_prepend"
                />
        </p>
        <p>
            <label for="<TMPL_VAR NAME="callroute">_target">Target</label>
            <select name="<TMPL_VAR NAME="callroute">_target" id="<TMPL_VAR NAME="callroute">_target">
                <option value="unused" is_default="true">Unused</option>
                <TMPL_LOOP NAME="targets">
                <option value="<TMPL_VAR NAME="cr_name">"><TMPL_VAR NAME="cr_description">
                </TMPL_LOOP>
            </select>
        </p>
    </fieldset>
</TMPL_LOOP>
